﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Presentation.Models.SubprojectViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Add task
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Add task for <%: Model.Subproject.Name %></h2>

    <% using (Html.BeginForm("AddTask", "Subproject", FormMethod.Post))
       {%>

                <div>
                
                    <table>
                        
                        <tr>
                            <td>
                                 <%: Html.LabelFor(m => m.Task.Name) %>
                            </td>
                            <td>
                                <%: Html.TextBoxFor(m => m.Task.Name)%>
                            </td>
                        </tr>

                        <tr>
                            <td>
                                <%: Html.LabelFor(m => m.Task.Description)%>
                            </td>
                            <td>
                                <%: Html.TextBoxFor(m => m.Task.Description)%>
                            </td>
                        </tr>

                    </table>

                <p>
                    <%: Html.Hidden("Subproject.Id", Model.Subproject.Id) %>
                    <input type="submit" value="Add" />
                </p>

        </div>

    <% } %>

</asp:Content>
